<?php

namespace tmcore\base;

use tmcore\traits\ErrorTrait;
use think\Model;
use tmcore\traits\TransTrait;

class BaseModel extends Model
{
    use TransTrait;
    use ErrorTrait;

    protected $pk = 'id';
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    
}